package com.ebuy.shopping.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.ebuy.shopping.model.Product;

@Service
public interface IProductService
{
    public Product load(int id) throws Exception;

    public int add(Product product) throws Exception;

    public int update(Product product) throws Exception;

    public List<Product> getProductsByCategoryId(Integer id) throws Exception;

    public List<Product> getProductsBySaleType(Integer saleType)
            throws Exception;

    public List<Product> getProducts() throws Exception;

    public int deleteByPrimaryKey(Integer id);

}
